/* 图标基础 */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    transition: all 0.3s ease;
}

.icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    stroke: currentColor;
}

/* 大小 */
.icon-xs {
    font-size: 12px;
}

.icon-small {
    font-size: 16px;
}

.icon-medium {
    font-size: 24px;
}

.icon-large {
    font-size: 32px;
}

.icon-xl {
    font-size: 48px;
}

.icon-2xl {
    font-size: 64px;
}

/* 颜色 */
.icon-primary {
    color: #0066CC;
}

.icon-success {
    color: #52c41a;
}

.icon-warning {
    color: #faad14;
}

.icon-error {
    color: #ff4d4f;
}

.icon-info {
    color: #1890ff;
}

.icon-muted {
    color: #999;
}

/* 交互效果 */
.icon-button {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.icon-button:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.icon-button:active {
    transform: scale(0.95);
}

/* 旋转 */
.icon-spin {
    animation: spin 1s linear infinite;
}

.icon-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* 动画 */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* 响应式 */
@media (max-width: 600px) {
    .icon-large {
        font-size: 28px;
    }
    
    .icon-xl {
        font-size: 40px;
    }
}
